
import java.awt.Graphics;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Color;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.io.PrintStream;
import java.awt.FontMetrics;
import java.util.ArrayList;

public class Card extends Button
{
    Board worldIn;
    public Card(int x, int y, Board b, Action a, boolean blackCard,  String text)
    {
        super(a, new Vec2(x,y), new Vec2(200,100), getColor(blackCard), text);
        this.worldIn = b;
    }

    public void setWidth(int w){
        width = w;
        setLength(new Vec2(width, height));
    
    }
    public void setHeight(int h){
        height = h; 
        setLength(new Vec2(width, height));
        
    }
    public void adWidth(int w){
        width += w;
        setLength(new Vec2(width, height));
    
    }
    public void adHeight(int h){
        height += h; 
        setLength(new Vec2(width, height));
        
    }
    public int getHeight(){
        return height;
        
    }
    public void updatePosition()
    {
    }
    public static Color getColor(boolean black){
        Color rc = new Color(45,45,45);
        if(!black){
            rc = new Color(230,230,230);
        }
        return rc;
    }
}